import createLogger from 'vuex/dist/logger';

import Vue from 'vue';
import Vuex from 'vuex';
import getters from './getters';

Vue.use(Vuex);

const modules = {
    user: require('./modules/user')
};

const store = new Vuex.Store({
    modules,
    getters,
    plugin: process.env.NODE_ENV === 'development' ? [createLogger()] : []
});

export default store;
